import {
    createRouter,
    createWebHashHistory
} from "vue-router";

const routes = [
    {
        path: "/",
        redirect: "/designer?template=testTemplate",
        // component: () => import("../components/spread/spread.vue"),
    },
    {
        path: "/designer",
        component: () => import("../components/spread/designer.vue"),
    }, {
        path: "/designer?template=testTemplate",
        component: () => import("../components/spread/designer.vue")
    }, {
        path: "/spread",
        component: () => import("../components/spread/spread.vue")
    }
]


const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router